using UnityEngine;

public class OnChargeExplosionWidhDetonator : OnChargeExplosionAdhesive
{
	public static bool needBlow = true;

	public override void Start()
	{
		base.Start();
		needBlow = true;
		if (base.isMine)
		{
			GameController.instance.playerScript.AddDentonatorGrenadeToList(this);
		}
	}

	protected override void OnDestroy()
	{
		if (needBlow)
		{
			base.OnDestroy();
		}
		if (base.isMine)
		{
			GameController.instance.playerScript.RemoveGrenadeFromList(this);
		}
	}

	[PunRPC]
	protected override void AttachToParent(int setId, string parentName, Vector3 localPosition, Quaternion localRotation)
	{
		base.AttachToParent(setId, parentName, localPosition, localRotation);
	}
}
